package com.elf.zero.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;

import androidx.annotation.Nullable;

/**
 * 圆形指示器
 */
public class CircularIndicator extends AbsIndicator {

    public CircularIndicator(Context context) {
        super(context);
    }

    public CircularIndicator(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void drawIndicator(Canvas canvas, int x, int width, int height, Paint paint) {
        canvas.drawCircle(x + width / 2, height / 2, height / 2, mPaint);
    }
}
